﻿namespace JinYuan.Models
{
    public class PlcGroupConfig
    {
        /// <summary>
        /// PLC编号
        /// </summary>
        private int _plcNum;
        public int PlcNum
        {
            get => _plcNum;
            set
            {
                if (_plcNum == value) return;
                _plcNum = value;

            }
        }

        /// <summary>
        /// 通信组
        /// </summary>
        private string _groupName;
        public string GroupName
        {
            get => _groupName;
            set
            {
                if (_groupName == value) return;
                _groupName = value;

            }
        }

        /// <summary>
        ///     通信组起始地址
        /// </summary>
        private string _start;
        public string Start
        {
            get => _start;
            set
            {
                if (_start == value) return;
                _start = value;

            }
        }

        private int _length;

        public int Length
        {
            get => _length;
            set
            {
                if (_length == value) return;
                _length = value;

            }
        }


        private bool _isTiggerRead;
        /// <summary>
        /// 是否触发读取
        /// </summary>
        public bool IsTiggerRead
        {
            get => _isTiggerRead;
            set
            {
                if (_isTiggerRead == value) return;
                _isTiggerRead = value;

            }
        }


        private bool _isFeedbackPlc;
        /// <summary>
        ///是否有返回PLC
        /// </summary>
        public bool IsFeedbackPlc
        {
            get => _isFeedbackPlc;
            set
            {
                if (_isFeedbackPlc == value) return;
                _isFeedbackPlc = value;

            }
        }

        private bool _isActive;
        /// <summary>
        /// 是否激活
        /// </summary>
        public bool IsActive
        {
            get => _isActive;
            set
            {
                if (_isActive == value) return;
                _isActive = value;

            }
        }

        private string _remark;
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark
        {
            get => _remark;
            set
            {
                if (_remark == value) return;
                _remark = value;

            }

        }


    }
}
